/**
 * Copyright (c) 2017-2023 Nop Platform. All rights reserved.
 * Author: canonical_entropy@163.com
 * Blog:   https://www.zhihu.com/people/canonical-entropy
 * Gitee:  https://gitee.com/canonical-entropy/nop-chaos
 * Github: https://github.com/entropy-cloud/nop-chaos
 */
package io.nop.commons.text.tokenizer;

import io.nop.api.core.util.SourceLocation;

public class Token {
    private final SourceLocation loc;
    private final TokenType type;
    private final Object value;

    public Token(SourceLocation loc, TokenType type, Object value) {
        this.loc = loc;
        this.type = type;
        this.value = value;
    }

    public SourceLocation getLoc() {
        return loc;
    }

    public TokenType getType() {
        return type;
    }

    public Object getValue() {
        return value;
    }
}